package com.lianzhihui.romeex.bean;

import android.text.TextUtils;

import com.lianzhihui.romeex.utils.MathUtil;
import com.lianzhihui.romeex.utils.NumberUtils;

/**
 * Description:
 * Author: RAMON
 * CreateDate: 2020/11/10 3:56 PM
 * UpdateUser:
 * UpdateDate:
 * UpdateRemark:
 * Version:
 */
public class ZZPostBean {


    /**
     * targetUserAddress : kjhkjho
     * coinNameCobo : BTC
     * coinName : BTC
     * remark : 这是备注信息
     * chainType : 1
     * amount : 100065
     */
    private String targetUserAddress; //目标地址
    private String coinNameCobo;
    private String coinName;
    private String remark = "";//备注
    private int chainType;//类型 1 主网, 2 跨链（提现）
    private double amount;//转账金额 整数 需要乘以1亿

    public String getTargetUserAddress() {
        return targetUserAddress;
    }

    public void setTargetUserAddress(String targetUserAddress) {
        this.targetUserAddress = targetUserAddress;
    }

    public String getCoinNameCobo() {
        return coinNameCobo;
    }

    public void setCoinNameCobo(String coinNameCobo) {
        this.coinNameCobo = coinNameCobo;
    }

    public String getCoinName() {
        return coinName;
    }

    public void setCoinName(String coinName) {
        this.coinName = coinName;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        if (TextUtils.isEmpty(remark)) {
            remark = "";
        }
        this.remark = remark;
    }

    public int getChainType() {
        return chainType;
    }

    public void setChainType(int chainType) {
        this.chainType = chainType;
    }

    public double getAmount() {
        return amount;
    }

    public long getAmountLarge() {
        return (long) MathUtil.multiply(amount, 100000000);
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }
}
